<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>共享米宝 - 我的推荐码</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
    <link rel="stylesheet" href="../assets/css/custom.css">
</head>
<body class="bg-gray-100">
    <div class="app-container">
        <header class="header">
            <div class="flex items-center">
                <button class="mr-3 text-gray-700" onclick="history.back()">
                    <i class="fas fa-arrow-left"></i>
                </button>
                <h1 class="text-lg font-medium">我的推荐码</h1>
            </div>
            <div>
                <i class="fas fa-bell text-gray-600"></i>
            </div>
        </header>

        <main class="p-4 pb-20">
            <!-- Referral Card -->
            <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
                <div class="text-center mb-4">
                    <div class="bg-blue-500 h-20 w-20 rounded-full flex items-center justify-center mx-auto mb-3">
                        <i class="fas fa-qrcode text-white text-3xl"></i>
                    </div>
                    <h3 class="font-medium">扫码注册共享米宝</h3>
                    <p class="text-xs text-gray-500 mt-1">您和好友都将获得奖励</p>
                </div>

                <!-- QR Code -->
                <div class="flex justify-center mb-6">
                    <div class="bg-gray-100 p-3 rounded-lg">
                        <div class="w-48 h-48 bg-white flex items-center justify-center">
                            <!-- Placeholder for actual QR code -->
                            <img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://mimibao.com/register?ref=USER123456" alt="推荐二维码" class="w-36 h-36">
                        </div>
                    </div>
                </div>

                <!-- Referral Code -->
                <div class="bg-gray-50 p-3 rounded-lg mb-6">
                    <div class="text-xs text-gray-500 text-center mb-1">我的推荐码</div>
                    <div class="flex justify-between items-center">
                        <span class="text-lg font-medium tracking-widest">USER123456</span>
                        <button class="text-blue-500 text-sm flex items-center">
                            <i class="fas fa-copy mr-1"></i>
                            <span>复制</span>
                        </button>
                    </div>
                </div>

                <!-- Share Buttons -->
                <div class="grid grid-cols-4 gap-4 mb-4">
                    <button class="text-center">
                        <div class="bg-green-100 p-3 rounded-full flex justify-center mx-auto mb-2">
                            <i class="fab fa-weixin text-green-600 text-xl"></i>
                        </div>
                        <div class="text-xs">微信</div>
                    </button>
                    <button class="text-center">
                        <div class="bg-blue-100 p-3 rounded-full flex justify-center mx-auto mb-2">
                            <i class="fab fa-qq text-blue-600 text-xl"></i>
                        </div>
                        <div class="text-xs">QQ</div>
                    </button>
                    <button class="text-center">
                        <div class="bg-red-100 p-3 rounded-full flex justify-center mx-auto mb-2">
                            <i class="fab fa-weibo text-red-600 text-xl"></i>
                        </div>
                        <div class="text-xs">微博</div>
                    </button>
                    <button class="text-center">
                        <div class="bg-gray-100 p-3 rounded-full flex justify-center mx-auto mb-2">
                            <i class="fas fa-ellipsis-h text-gray-600 text-xl"></i>
                        </div>
                        <div class="text-xs">更多</div>
                    </button>
                </div>
            </div>

            <!-- Referral Benefits -->
            <div class="bg-white rounded-lg shadow-sm p-4 mb-6">
                <h3 class="font-medium mb-4">邀请好友福利</h3>
                
                <div class="space-y-4">
                    <div class="flex items-start">
                        <div class="bg-blue-100 p-2 rounded-full mr-3 flex-shrink-0">
                            <i class="fas fa-user-plus text-blue-500"></i>
                        </div>
                        <div>
                            <div class="font-medium mb-1">好友注册享受分佣</div>
                            <div class="text-sm text-gray-600">
                                邀请好友注册即可享受2%的分佣
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Referral Rules -->
            <div class="bg-white rounded-lg shadow-sm p-4">
                <h3 class="font-medium mb-3">活动规则</h3>
                <div class="text-sm text-gray-600 space-y-2">
                    <p>1. 好友需通过您的专属推荐码注册成功并完成实名认证。</p>
                    <p>2. 邀请奖励将在好友注册成功后24小时内发放到您的账户。</p>
                    <p>3. 分润奖励将在好友消费结算后实时计入您的收益账户。</p>
                    <p>4. 对于任何恶意刷奖行为，平台有权收回奖励并封禁账户。</p>
                    <p>5. 最终解释权归共享米宝平台所有。</p>
                </div>
            </div>
        </main>

        <footer class="footer-nav">
            <a href="index.html" class="text-center text-gray-500">
                <i class="fas fa-home text-xl"></i>
                <div class="text-xs mt-1">首页</div>
            </a>
            <a href="rental.html" class="text-center text-gray-500">
                <i class="fas fa-battery-full text-xl"></i>
                <div class="text-xs mt-1">租借</div>
            </a>
            <a href="wifi.html" class="text-center text-gray-500">
                <i class="fas fa-wifi text-xl"></i>
                <div class="text-xs mt-1">WiFi</div>
            </a>
            <a href="earnings.html" class="text-center text-gray-500">
                <i class="fas fa-wallet text-xl"></i>
                <div class="text-xs mt-1">收益</div>
            </a>
            <a href="account.html" class="text-center text-gray-500">
                <i class="fas fa-user text-xl"></i>
                <div class="text-xs mt-1">我的</div>
            </a>
        </footer>
    </div>
</body>
</html> 